package com.lsmw.ucenter.client;

import com.lsmw.commonutils.R;
import com.lsmw.ucenter.client.impl.MyOssClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(name = "service-oss", fallback = MyOssClientImpl.class)
public interface MyOssClient {

    @PostMapping(value = "/oss", consumes = "multipart/form-data")
    R uploadFile(MultipartFile file);
}
